<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  
	
<form id="pagerForm" method="post" action="comments/list">
     <input type="hidden" name="currentPage" value="${page.pageNo}" /> 
	<input type="hidden" name="numPerPage" value="${page.pageSize}" /> 
	<input type="hidden" name="orderField" value="${param.orderField}" /> 
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" />

</form>

<div class="pageHeader">
<form rel="pagerForm" onsubmit="return navTabSearch(this);"
	action="comments/list" method="post">
<div class="searchBar">
	
		<table class="searchContent">
			<tr>
				<td class="dateRange">
					评论人:
					<input type="text" name="name" size="20" value="${pageParam.name}"/>
				</td>
				<td>
					标题/内容：<input type="text" name="keyWord" size="50" value="${pageParam.keyWord}"/>
				</td>
				<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></td>
			</tr>
		</table>
</div>
</form>
</div>
<div class="pageContent">
<div class="panelBar">
<ul class="toolBar">
	<li><a class="add" href="comment/replyView?commentId={sid_user}" target="dialog" mask="true" maxable="false" width="600" height="201" fresh="true"><span>回复</span></a></li>
		<li>
			<a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="comment/del/1" class="delete">
			 <span>删除</span>
			</a>
	</li>
	
</ul>
</div>
<table class="table" width="1200" layoutH="138">
	<thead>
		<tr>
			<th width="22">
			<input type="checkbox" group="ids" class="checkboxCtrl">
			</th>
			<th width="60" orderField="accountNo" class="asc">评论人</th>
			<th width="120"orderField="accountName">评论内容</th>
			<th width="60" align="center" orderField="accountLevel">回复内容</th>
			<th width="80" orderField="accountType">邮箱 </th>
			<th width="130" orderField="accountCert">链接</th>
			<th width="70">创建时间</th>
		</tr>
	</thead>
	
	<tbody>
	   <c:forEach items="${page.result}" var="result">
		<tr target="sid_user" rel="${result.commentId}">
			<td><input name="ids" value="${result.commentId}" type="checkbox"></td>
			<td>${result.name }</td>
			<td>${result.contents}</td>
			<td>${result.reply}</td>
			<td>${result.email}</td>
			<td>${result.url }</td>
			<td>${result.createTime }</td>
		</tr>
	 </c:forEach>	
	</tbody>
</table>
<div class="panelBar">
<div class="pages"><span>显示</span> <select class="combox"
	name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
	<option value="20" ${page.pageSize==20?'selected="selected"':''}>20</option>
	<option value="50" ${page.pageSize==50?'selected="selected"':''}>50</option>
	<option value="100" ${page.pageSize==100?'selected="selected"':''}   >100</option>
	<option value="200" ${page.pageSize==200?'selected="selected"':''}>200</option>
</select> <span>条，共${page.totalRecords}条</span></div>

<div class="pagination" targetType="navTab" totalCount="${page.totalRecords}" numPerPage="${page.pageSize}" pageNumShown="10" currentPage="${page.pageNo}">
</div>
</div>
</div>
